package com.action;

import java.util.HashMap;

import org.apache.struts.action.ActionForward;

import base.BaseDispatchAction;
import base.Power;

import com.mode.Public;

public class PublicAction extends BaseDispatchAction {
	public ActionForward getValue(Power power) throws Exception {
		Public pub = new Public();
		System.out.println(power.getListFromSql("select * from value").size());
		HashMap<String, Object> map = pub.getListForNewHouse(power);
		power.setAttribute("list", map.get("list"));
		power.setAttribute("PL", map.get("PL"));
		power.setAttribute("PLend", map.get("PLend"));
		return power.findForward("/index.jsp", false);
	}
}
